package com.invengo.module_check.ui.fragment.book_opeartion_result.item;

import androidx.annotation.NonNull;

import com.invengo.library_db.entity.module_check.BookBean;
import com.invengo.module_check.ui.fragment.book_opeartion_result.BookOpeartionResultViewModel;

import me.goldze.mvvmhabit.base.ItemViewModel;
import me.goldze.mvvmhabit.bus.event.SingleLiveEvent;

public class BookOpeartionResultItemViewModel extends ItemViewModel<BookOpeartionResultViewModel> {
    public SingleLiveEvent<BookBean> book = new SingleLiveEvent<>();
    public BookOpeartionResultItemViewModel(@NonNull BookOpeartionResultViewModel viewModel, BookBean bean) {
        super(viewModel);
        book.postValue(bean);
    }
    public int getPosition() {
        return viewModel.getPosition(this) + 1;
    }

}
